/*
 * @Author: CQJ
 * @Date: 2022-08-28 23:33:11
 * @LastEditors: CQJ
 * @LastEditTime: 2022-09-07 15:35:47
 * @Description:
 */

import type { AlbumListData } from '@/types/site/atlas/atlasAlbum'
export const PRICE_TYPE: Record<number, any> = {
  1: '免费',
  2: '付费',
  3: '点播'
}
export const column = [
  {
    title: '排序',
    key: 'sort',
    width: 100
  },
  {
    title: '专辑ID',
    key: 'album_id',
    dataIndex: 'album_id'
  },
  {
    title: '专辑名称',
    dataIndex: 'album_name',
    key: 'album_name'
  },
  {
    title: '图集数量',
    key: 'album_picture_count',
    dataIndex: 'album_picture_count',
    sorter: (a: AlbumListData, b: AlbumListData) => (a.album_picture_count as any) - (b.album_picture_count as any),
    showSorterTooltip: false,
    sortDirections: ['descend', 'ascend']
  },
  {
    title: '人气',
    key: 'album_popularity',
    dataIndex: 'album_popularity',
    sorter: (a: AlbumListData, b: AlbumListData) => (a.album_popularity as any) - (b.album_popularity as any),
    showSorterTooltip: false,
    sortDirections: ['descend', 'ascend']
  },
  {
    title: '创建时间',
    key: 'created_at',
    dataIndex: 'created_at'
  },
  {
    title: '状态',
    key: 'album_status',
    dataIndex: 'album_status'
  },
  {
    title: '操作',
    key: 'action',
    fixed: 'right',
    width: 200
  }
]
export const videoData = [
  {
    id: '11',
    key: '1',
    filmName: '功夫',
    payStatus: '80金币',
    popularity: '7648'
  },
  {
    id: '12',
    key: '2',
    filmName: '功夫',
    payStatus: '美人鱼',
    popularity: '7648'
  },
  {
    id: '13',
    key: '3',
    filmName: '一千零一夜',
    payStatus: '80金币',
    popularity: '7648'
  },
  {
    id: '14',
    key: '4',
    filmName: '侏罗纪世界',
    payStatus: '80金币',
    popularity: '7648'
  }
]
export const leftColumn = [
  {
    dataIndex: 'picture_id',
    title: '图集ID',
    key: 'picture_id',
    width: 160
  },
  {
    dataIndex: 'picture_name',
    title: '图集名称',
    key: 'picture_name',
    width: 100
  },
  {
    dataIndex: 'picture_price_type',
    title: '收费状态',
    key: 'picture_price_type',
    width: 140
  },
  {
    dataIndex: 'picture_popularity',
    title: '人气',
    key: 'picture_popularity',
    width: 100
  }
]
export const rightColumn = [
  {
    dataIndex: 'picture_id',
    title: '图集ID',
    key: 'picture_id',
    width: 160
  },
  {
    dataIndex: 'picture_name',
    title: '图集名称',
    key: 'picture_name',
    width: 100
  },
  {
    dataIndex: 'picture_price_type',
    title: '收费状态',
    key: 'picture_price_type',
    width: 140
  },
  {
    dataIndex: 'picture_popularity',
    title: '人气',
    key: 'picture_popularity',
    width: 100
  }
]
